cpufreq: Update cpufreq aperf and mperf read, so that it can be used
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 20 Mar 2009 08:48:17 +0000 (08:48 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 20 Mar 2009 08:48:17 +0000 (08:48 +0000)
commit1d79561c4160abd7de9d754892088351f33e79c5
tree87774e2a9517c4246ef8734627e41a59f8783aa9
parent7cb051784b0b23386aab37c518a1b3428e591fd0
cpufreq: Update cpufreq aperf and mperf read, so that it can be used
by both ondemand gov and user program

Current __get_measured_perf read aperf and mperf MSR and then clear
them for the sake of ondemand governor. This solution block user
program to get aperf and mperf on their purpose. In this patch, it no
longer clear aperf and mperf MSR, so that it can be used by both
ondemand gov and user program.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/drivers/cpufreq/cpufreq_ondemand.c
xen/drivers/cpufreq/utility.c
xen/include/acpi/cpufreq/cpufreq.h